package com.example.zengxianghui900.netcomponent.vo;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zengxianghui900 on 17/10/10.
 */

public class VersionDataVo implements Parcelable {


    /**
     * isMandatoryUpdate : Y
     * downloadURL : http://odu007voy.bkt.clouddn.com/EClaims_HSR_Test.apk
     * versionNo : 2.2.1
     */

    private String isMandatoryUpdate;
    private String downloadURL;
    private String versionNo;
    //更新内容
    private String updateNote;
    //发布时间
    private String publishedDate;

    public String getIsMandatoryUpdate() {
        return isMandatoryUpdate;
    }

    public void setIsMandatoryUpdate(String isMandatoryUpdate) {
        this.isMandatoryUpdate = isMandatoryUpdate;
    }

    public String getDownloadURL() {
        return downloadURL;
    }

    public void setDownloadURL(String downloadURL) {
        this.downloadURL = downloadURL;
    }

    public String getVersionNo() {
        return versionNo;
    }

    public void setVersionNo(String versionNo) {
        this.versionNo = versionNo;
    }

    public String getUpdateNote() {
        return updateNote;
    }

    public void setUpdateNote(String updateNote) {
        this.updateNote = updateNote;
    }

    public String getPublishedDate() {
        return publishedDate;
    }

    public void setPublishedDate(String publishedDate) {
        this.publishedDate = publishedDate;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.isMandatoryUpdate);
        dest.writeString(this.downloadURL);
        dest.writeString(this.versionNo);
        dest.writeString(this.updateNote);
        dest.writeString(this.publishedDate);
    }

    public VersionDataVo() {
    }

    protected VersionDataVo(Parcel in) {
        this.isMandatoryUpdate = in.readString();
        this.downloadURL = in.readString();
        this.versionNo = in.readString();
        this.updateNote = in.readString();
        this.publishedDate = in.readString();
    }

    public static final Creator<VersionDataVo> CREATOR = new Creator<VersionDataVo>() {
        @Override
        public VersionDataVo createFromParcel(Parcel source) {
            return new VersionDataVo(source);
        }

        @Override
        public VersionDataVo[] newArray(int size) {
            return new VersionDataVo[size];
        }
    };
}
